package lab02.test16;
import java.util.Scanner;
public class Test16 {
    public static void main(String[] args) {
        Addition addition = new Addition();
        Subtraction subtraction = new Subtraction();
        Multipliption multipliption = new Multipliption();
        Division division = new Division();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要进行计算的两个值：");
        double variable1 = scanner.nextDouble();
        double variable2 = scanner.nextDouble();

        System.out.println("加" + addition.arithmetic(variable1,variable2));
        System.out.println("减" + subtraction.arithmetic(variable1,variable2));
        System.out.println("乘" + multipliption.arithmetic(variable1,variable2));
        System.out.println("除" + division.arithmetic(variable1,variable2));
    }
}
